﻿using System;
using OA.DBUtility;

namespace OA.Model
{
    [Serializable]
    [MappingTable("PassportView")]
    public partial class PassportViewInfo:PassportInfo
    {
        
    }

    /// <summary>
    /// PassportInfo:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    [MappingTable("Passport")]
    public partial class PassportInfo
    {
        public PassportInfo()
        { }
        #region Model
        private int _id;
        private int? _employeeid;
        private string _handleunit;
        private string _passportnum;
        private DateTime? _validityperiod;
        private DateTime? _issueDate;
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("EmployeeId")]
        public int? EmployeeId
        {
            set { _employeeid = value; }
            get { return _employeeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("HandleUnit")]
        public string HandleUnit
        {
            set { _handleunit = value; }
            get { return _handleunit; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PassportNum")]
        public string PassportNum
        {
            set { _passportnum = value; }
            get { return _passportnum; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ValidityPeriod")]
        public DateTime? ValidityPeriod
        {
            set { _validityperiod = value; }
            get { return _validityperiod; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("IssueDate")]
        public  DateTime ?IssueDate
        {
            get { return _issueDate; }
            set { _issueDate = value; }
        }
        #endregion Model

    }
}

